<div>
    <a href="<?php echo base_url('kr_akun_level4/add')?>">Add Kr Akun Level4</a>
</div>
<?php
    $message = $this->session->flashdata("message");
    echo ($message) ? "<p class='success'>{$message}</p>" : "";		
?>
<?php if($data!= array()): ?>
    <table border="1">
        <tr>
            <th>No</th>
            <th>Uniq Kode</th>
            <th>Kode</th>
            <th>Uraian</th>
            <th>Kode Kr_akun_level1</th>
            <th>Kode Kr_akun_level2</th>
            <th>Kode Kr_akun_level3</th>
            <th>Action </th>
        </tr>
            <?php $i=1; foreach ($data as $val): ?>
        <tr <?php echo $i%2 == 0 ?  : '';  ?>>
            <td><?php echo $i ?></td>
            <td><?php echo $val->uniq_kode; ?></td>
            <td><?php echo $val->kode; ?></td>
            <td><?php echo $val->uraian;?></td>
            <td><?php echo $val->kr_akun_level1_kode;?></td>
            <td><?php echo $val->kr_akun_level2_kode;?></td>
            <td><?php echo $val->kr_akun_level3_kode;?></td>
            <td>
                <a href="<?php echo base_url('kr_akun_level4/edit/'.$val->uniq_kode) ?>"  >edit</a>
                |
                <a href="<?php echo base_url('kr_akun_level4/delete/'.$val->uniq_kode) ?>" onclick="return confirm('apakah anda yakin akan menghapus data tersebut?');">delete</a>
            </td>
        </tr>
        <?php $i++; endforeach; ?>
    </table>
<?php else: ?>
    <p class="msg info">Belum ada data yang tersedia</p>
<?php endif; ?>